interface ShowMessage{
   void ShowBrand (String s);
}
class TV implements ShowMessage {
   public void ShowBrand(String s){
      System.out.println(s);
   }
}
class PC implements ShowMessage{
    public void ShowBrand(String s){
       System.out.println(s);
    }
}
public class Example6_2{
   public static void main(String args[]){
     ShowMessage sm;
     sm = new TV();
     sm.ShowBrand("长城牌电视机");
     sm = new  PC ();
     sm.ShowBrand("联想奔月5008pc机");
   }
}

